package com.honglang.common.tools;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtil {
   
	public static boolean isNumAndStr(String str){
		
		Pattern pattern=Pattern.compile("[0-9a-zA-Z]+");
		Matcher matcher = pattern.matcher(str);
		
		return matcher.matches();
		
	}
	
	public static boolean isBlank(String str){
		return str==null||str.trim().isEmpty();
	}
}
